@extends('master')

@section('title')
    欢迎登录
@stop

@section('content')
    <div class="container mx-auto">
        <div class="row mx-auto">
            <div class="col-5 mx-auto my-5">
                <div class="card my-5">
                    <div class="card-header">登录</div>
                    <div class="card-body">

                        @include('errors.list')

                        {!! Form::open(['url' => '/managers/login', 'class' => 'form-horizontal', 'role' => 'form']) !!}
                        <div class="form-group">
                            {!! Form::label('name', '用户名', ['class' => 'col-md-4 control-label']) !!}
                            <div class="col-10">
                                {!! Form::text('name', old('name'), ['class' => 'form-control', 'required']) !!}
                            </div>
                        </div>
                        <div class="form-group">
                            {!! Form::label('password', '密码', ['class' => 'col-md-4 control-label']) !!}
                            <div class="col-10">
                                {!! Form::password('password', ['class' => 'form-control', 'required']) !!}
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-6 col-offset-4">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox" name="remember"> Remember Me
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-md-6 col-md-offset-4">
                                {!! Form::submit('Login', ['class' => 'btn btn-primary form-control']) !!}
                            </div>
                        </div>
                        {!! Form::close() !!}
                    </div>
                </div>
            </div>
        </div>
    </div>
@stop